package com.one.efaimaly.user.model;

import com.one.common.model.http.base.BaseResponse;
import com.one.common.model.bean.UserWorkerBean;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * author ：zhulunjun
 * email  ：zhulunjun@qq.com
 * date   ：2018/8/5 下午5:35
 * description ：师傅用户信息
 **/
public interface UserWorkerApi {

    /**
     * 获取师傅特有用户信息
     */
    @FormUrlEncoded
    @POST("/yinlongMemberInterfaces/v1.0/getMemberWorkerDetail")
    Observable<BaseResponse<UserWorkerBean>> getUserWorkerInfo(@FieldMap Map<String, String> params);

    /**
     * 更新师傅独有信息
     */
    @FormUrlEncoded
    @POST("/yinlongMemberInterfaces/v1.0/updateMemberWorker")
    Observable<BaseResponse<String>> updateWorkerUserInfo(@FieldMap Map<String, String> params);


}
